package com.yhd.observer;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yhd
 * @email yinhuidong1@xiaomi.com
 * @description TODO
 * @since 2021/5/22 上午1:35
 */
public class MainTest {

    @Test
    public void test() {

        TianGou one = new TianGouOne();
        TianGou two = new TianGouTwo();

        List<TianGou> tianGous = new ArrayList<>();
        tianGous.add(one);
        tianGous.add(two);

        Mm mm = new Mm(tianGous);
        mm.sendEvent();
    }
}
